package cn.wolfcode.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

@Setter
@Getter
@ToString
@TableName("teacher")
public class Teacher {
    @TableId(type=IdType.AUTO)
    private Long id;
    private String name;
    private String sex;
    @TableField(exist = false)
    private List<Student> students;
}
